package com.draven.order.controller;

import com.draven.order.feign.WeatherFeignClient;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;

@RestController
@RequestMapping(value = "/weather")
public class WeatherController {
    @Resource
    WeatherFeignClient weatherFeignClient;

    @RequestMapping(value = "/getWeather")
    public String getWeather() {
        return weatherFeignClient.getWeather("APPCODE 93b7e19861a24c519a7548b17dc16d75", "50b53ff8dd7d9fa320d3d3ca32cf8ed1", "2182");
    }
}
